# Contributor: Kaos < gianlucaatlas at gmail dot com >
# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
# Contributor: Matthew Sharpe <matt.sharpe@gmail.com>

pkgname=ophcrack
pkgver=3.3.0
pkgrel=2
pkgdesc="A free Windows password cracker based on rainbow tables"
arch=('i686' 'x86_64')
url=("http://ophcrack.sourceforge.net/")
license=('GPL')
depends=('qt' 'openssl')
conflicts=('ophcrack2')
source=(http://garr.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2 \
	ophcrack.desktop)
md5sums=('09028bf3d470cf050baf7639ecf5943f'
         '664599c4fd7fd210e6c421459f60e20d')

build() {
  cd ${srcdir}/$pkgname-$pkgver 
  ./configure	--prefix=/usr --enable-gui || return 1
  make || return 1
  make DESTDIR=${pkgdir} install || return 1
  install -Dm644 ../${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
}
